-- GENERATED SPELL FOR [Ancient Wisp] --


function spell0_17946(pUnit, Event) --@Ancient Spark,n/a--
pUnit:FullCastSpellOnTarget(39349,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17946', 2000, 1)
end

function Sorts_17946(pUnit, Event)
local choix_sorts_17946 = math.random(0, 0)
if choix_sorts_17946 == 0 then
pUnit:RegisterEvent('spell0_17946', 1, 1)
end
end

function mob17946_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17946', math.random(1500, 3000), 1)
end

function mob17946_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17946_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17946_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17946, 1, 'mob17946_Action')
RegisterUnitEvent(17946, 2, 'mob17946_Leave')
RegisterUnitEvent(17946, 3, 'mob17946_Kill')
RegisterUnitEvent(17946, 4, 'mob17946_Die')
